export * from './editor-config'

// 身份
export const ROLES = {
  ADMIN: 'admin',
  TEACHER: 'teacher',
  STUDENT: 'student',
  ASSISTANT: 'assistant',
}

// 题目运行状态
export const STATUS = {
  AC: 'AC',
  WA: 'WA',
  CE: 'CE',
  PE: 'PE',
  RE: 'RE',
  REDO: 'REDO',
  TLE: 'TLE',
  COPY: 'COPY',
  QUEUE: 'QUEUE',
  WAIT: 'WAIT',
}

// 题目难易度
export const DIFFICULTY = {
  EASY: '易',
  MEDIUM: '中',
  HARD: '难',
}

// problem-tabs 名字常量
export const PROBLEM_TAB_NAMES = {
  DETAIL: 'detail',
  RESULT: 'result',
  COMMENT: 'comment',
  COMMIT_HISTORY: 'commit_history',
  PASS: 'pass',
  CASE: 'case',
  ANSWER: 'answer',
  COMMENT_CHECK: 'comment_check',
  BASEINFO: 'baseinfo',
  NORMAL: 'normal',
  TEST: 'test',
  SOLUTION: 'solution',
  DETAILINFO: 'detailinfo',
  CODE: 'code',
  ASSISTANT_ADD: 'assistant_add',
  ASSISTANT_AD: 'assistant_ad',
}

export const PROBLEM_SUBMIT_TYPE = {
  NORMAL: 'FIRST',
  COPIED: 'SECOND',
}

// 智能训练中类别的开放状态
export const CATEGORY_STATUS = {
  OPENING: '开放',
  SCHEDULE_OPEN: '定时开放',
  HIDDEN: '隐藏',
}

export const EXAM_TYPE = {
  TRAIN: 'iTraining',
  PRACTICE: 'practice',
  TEST: 'test',
}

// 流程图中节点的可移动方位
export const FIRST_COLUMN_DIREC = [
  {
    label: '左侧',
    value: 1,
  },
  {
    label: '右侧',
    value: 2,
  },
  {
    label: '上方',
    value: 3,
  },
  {
    label: '下方',
    value: 4,
  },
]
export const OTHER_COLUMN_DIREC = [
  {
    label: '左侧',
    value: 1,
  },
  {
    label: '右侧',
    value: 2,
  },
]
export const DIRECTION = {
  LEFT: '1',
  RIGHT: '2',
  TOP: '3',
  BOTTOM: '4',
}

// 智能训练闯关选择
export const ITRAIN_CHOICE = {
  FINISHED: 'finished',
  CONTINUE: 'continueCurrent',
  INTO: 'into',
}

// 智能训练提交题目后的操作
export const ITRAIN_OPERATION = {
  PASS: 'pass',
  EXCEED_DEADLINE: 'exceedDeadline',
  ALL_PROBLEMS_FINISHED: 'allProblemsFinished',
  NEXT_PROBLEM: 'nextProblem',
}

export const PASS_OPTION = {
  FINISHED: 'finished',
  // UNFINISHED: 'unfinished',
}

// 题目的提交状态
export const PROBLEM_SUBMIT_STATUS = {
  SUBMIT_FINISHED: 'afterFinished',
  SUBMIT_UNFINISHED: 'beforeFinished',
}

// 流程图节点距离
export const NODE_SIZE = {
  WIDTH: 200,
  HEIGHT: 80,
  NODE_WIDTH: 160,
  NODE_HEIGHT: 50,
}
